#!/bin/sh

sudo pacman -S widelands
if [ uname -a | grep "x86_64" ]
    then
        wget http://data.libregamenight.xyz/pub/bzflag/amd64.pkg.tar.xz
        sudo pacman -U amd64.pkg.tar.xz
    else
        wget http://data.libregamenight.xyz/pub/bzflag/i386.pkg.tar.xz
	sudo pacman -U i386.pkg.tar.xz
fi

echo "Time to reap the profits, now!"
echo "If you didn't get any errors, Bzflag v2.4.2 is now installed-- just run the 'bzflag' command."
echo "Cheers!"
